package com.erclab.xbuilder.formelements;

import com.erclab.internal.xpresso.formelements.Hidden;
import com.erclab.internal.xpresso.forms.Form;
import com.erclab.internal.xpresso.util.FormElementUtil;

public class ForwardUrlElement extends Hidden {

	@Override
	public String[] processSubmittedValues(Form theForm, String[] submittedValues) {
		String value = ((String[])FormElementUtil.getElementValue(theForm, "formName"))[0];		
		return new String[]{value +  ".report"};
	}

}
